package com.itheima.service;

import com.itheima.dto.ShoppingCartDto;
import com.itheima.dto.SubShoppingDto;
import com.itheima.vo.ShoppingCartVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface ShoppingCartService {
    boolean add(ShoppingCartDto shoppingCartDto);

    List<ShoppingCartVo> getList();

    boolean clean();

    boolean sub(SubShoppingDto subShoppingDto);
}
